package com.code.springbootmybatismysql.configuration.datasource;


public enum DBEnum {
    MASTER("MASTER", "主库"),
    SLAVE1("SLAVE1", "从库1"),
    LOG("LOG", "日志库");

    private String type;
    private String name;

    DBEnum(String type, String name) {
        this.type = type;
        this.name = name;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
